package com.yazif.vqa.api.wechat.domain;



import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class Message {

    @XmlCDATA
    @XmlElement(name="ToUserName")
    protected String toUserName;  //开发者微信号

    @XmlCDATA
    @XmlElement(name="FromUserName")
    protected String fromUserName;    //发送方帐号（一个OpenID）

    @XmlElement(name="CreateTime")
    protected String createTime;  //消息创建时间 （整型）

    @XmlCDATA
    @XmlElement(name="MsgType")
    protected String msgType; //
    @XmlElement(name = "MsgId")
    private String msgId;   //消息id，64位整型


    @XmlCDATA
    @XmlElement(name = "URL")
    String URL;

    //文本
    @XmlCDATA
    @XmlElement(name = "Content")
    String content;

    //媒体id
    @XmlCDATA
    @XmlElement(name = "MediaId")
    String mediaId;

    //图片
    @XmlCDATA
    @XmlElement(name = "PicUrl")
    String picUrl;

    //语音消息
    // @XmlCDATA
    @XmlElement(name = "Format")
    String format;

    @XmlCDATA
    @XmlElement(name = "Recognition")
    String recognition;

    //视频
    @XmlCDATA
    @XmlElement(name = "ThumbMediaId")
    String thumbMediaId;

    //地理位置
    @XmlElement(name = "Location_X")
    String locationX;
    @XmlElement(name = "Location_Y")
    String locationY;
    @XmlElement(name = "Scale")
    String scale;

    @XmlCDATA
    @XmlElement(name = "Label")
    String label;

    //链接
    @XmlCDATA
    @XmlElement(name = "Title")
    String title;

    @XmlCDATA
    @XmlElement(name = "Description")
    String description;

    @XmlCDATA
    @XmlElement(name = "Url")
    String url;


    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getURL() {
        return URL;
    }

    public void setURL(String URL) {
        this.URL = URL;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getRecognition() {
        return recognition;
    }

    public void setRecognition(String recognition) {
        this.recognition = recognition;
    }

    public String getThumbMediaId() {
        return thumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        this.thumbMediaId = thumbMediaId;
    }

    public String getLocationX() {
        return locationX;
    }

    public void setLocationX(String locationX) {
        this.locationX = locationX;
    }

    public String getLocationY() {
        return locationY;
    }

    public void setLocationY(String locationY) {
        this.locationY = locationY;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
